<?php
/**
 * licenses : MIT
 * creatTime: 2020/5/15
 * author : weblinuxgame
 * filename: PostApi.php
 */

namespace App\Api\Modules\Posts;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use OpenApi\Annotations as OA;

/**
 * @OA\Tag(
 *    name="Post",
 *    description="## 文章,游记前端-操作接口",
 *  )
 */

/**
 * Interface PostApi
 * @package App\Api\Modules\Posts
 */
interface PostBaseApi
{
    /**
     * 用户罗列接口
     * @param Request $request
     * @return Response
     */
    public function lists(Request $request): Response;

    /**
     * 发表文章接口
     * @param Request $request
     * @return Response
     */
    public function store(Request $request): Response;

    /**
     * 更新文章接口
     * @param Request $request
     * @return Response
     */
    public function update(Request $request): Response;

    /**
     * 单个文章详请接口
     * @param Request $request
     * @return Response
     */
    public function show(Request $request): Response;

}
